package com.s7175.kor.model;

import java.util.LinkedList;

public class Configuration extends ModelMaster{

	private String name;
	private int cores;
	private int users;
	private boolean debug;

	private Server worksOn; // ref to server

	private LinkedList<Parameter> parameters = new LinkedList<Parameter>();

	public String toString() {
		return "ConfigurationItem [name=" + name + ", params count="
				+ parameters.size() + "]";
	}

	public Configuration(String sName) {
		this.name = sName;
	};

	public LinkedList<Parameter> getParameters() {
		return this.parameters;
	}

	public void setParameters(LinkedList<Parameter> oParameters) {
		this.parameters = oParameters;
	}

	public boolean addParameter(Parameter oParam) {
		return this.parameters.add(oParam);
	}

	public String getName() {
		return name;
	}

	public void setName(String sDisplayName) {
		this.name = sDisplayName;
	}

	public Server getWorksOn() {
		return worksOn;
	}

	public void setWorksOn(Server server) {
		this.worksOn = server;
	}

	public int getCores() {
		return cores;
	}

	public void setCores(int cores) {
		this.cores = cores;
	}

	public boolean getDebug() {
		return debug;
	}

	public void setDebug(boolean debug) {
		this.debug = debug;
	}

	public int getUsers() {
		return users;
	}

	public void setUsers(int users) {
		this.users = users;
	}
}
